package com.sls.nzdapplication.ui.custom;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.sls.nzdapplication.R;
import com.sls.nzdapplication.ui.custom.base.BaseIconView;
import com.sls.nzdapplication.ui.custom.base.MyBaseIconView;
import com.sls.nzdapplication.util.LogUtil;


/**
 * 更多
 */
public class MoreIconView extends BaseIconView {

    private static final String TAG = "MoreIconView";

    public MoreIconView(Context context) {
        this(context, null);
    }

    public MoreIconView(Context context, AttributeSet attrs) {
        this(context, attrs, R.style.IconViewStyle);
    }

    public MoreIconView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //do something
            }
        });
    }


    @Override
    public boolean createBackground() {
        setIconBackground(R.drawable.icon_c_diy5);
        return true;
    }

    @Override
    public boolean createIcon() {
        setBackgroundResource(R.drawable.single_bg_selector);
        return true;
    }

}
